# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

# Old Maintainer: Felix Yan <felixonmars@archlinux.org>
# Old Contributor: Mauro Andreolini <mauro.andreolini@unimore.it>

pkgname=findmyhash
pkgver=1.1.2
pkgrel=9
pkgdesc='Crack different types of hashes using free online services.'
groups=('blackarch' 'blackarch-crypto')
arch=('any')
url='https://code.google.com/archive/p/findmyhash/'
license=('GPL3')
depends=('python2' 'python2-httplib2')
source=("$pkgname::https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/findmyhash/${pkgname}_v${pkgver}.py")
sha512sums=('19aeec248a7512a6b4789b4ab9e3732dbba7a237f6836df2737d3c5f7a8d5efa47dbaebcb28eb9b85acb1c47e3b2a178103460abcbfe1af646b3daedf7f7786b')

prepare() {
  sed -i '1i#!/usr/bin/env python2' $pkgname
}

package() {
  install -Dm 755 $pkgname "$pkgdir/usr/bin/$pkgname"
}

